<template>
  <el-input v-model="input" placeholder="请输入姓名"></el-input>
  <el-input-number v-model="num" @change="handleChange" :min="1" :max="10" label="数量"></el-input-number>
</template>

<script setup>
import {ref} from "vue";
let  num=ref(1)

let  input=ref()
// let  input=ref('文本框的默认值')
function handleChange(value) {
  console.log(value);
}
</script>

<style scoped>

</style>